package com.itheima.shuzu;

public class Demo4 {
    public static void main(String[] args) {
        int[] a = new int[]{1, 2, 4, 11, 22, 111, 14, 15, 44, 35, 4, 56, 7, 78,};
        int b = a[0];
        for (int i = 0; i < a.length; i++) {
            if (a[i] > b) {
                b = a[i];
            }
        }
        System.out.println(b);
    }
}
